#pragma once
#include "vn/IPEndPoint.h"

void IPEndPointTest() {_test_func_;
	// hello world
	{
		IPEndPoint a;
		const IPEndPoint b(IPAddress::Any, 80);
		const IPEndPoint c(b);

		a = b;

		// NOT ALLOW:
		// IPEndPoint d("google.com", 80);
		// IPEndPoint d(0x010000f7, 80);
	}

	// members access
	{
		IPEndPoint a;
		const IPEndPoint b;
		a.GetData();			// note: method returns pointer to a member
		a.GetLength();

		b.GetData();
		b.GetLength();
	}
}
